﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BillsDomain
{
    /// <summary>
    /// 
    /// </summary>
    public class UpcomingPaymentsCollection : BindingList<PaymentWithDate>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UpcomingPaymentsCollection"/> class.
        /// </summary>
        public UpcomingPaymentsCollection():base(new List<PaymentWithDate>())
        {
            
        }

        /// <summary>
        /// Sorts this instance.
        /// </summary>
        public void Sort()
        {
            List<PaymentWithDate> items = this.Items as List<PaymentWithDate>;
            items.Sort();
        }
    }
}
